﻿using System;
using System.Collections.Generic;

using Apache.Cassandra;

using RexToy.Cassandra.Meta;

namespace RexToy.Cassandra
{
    public static class ContextFactory
    {
        public static ICassandraContext CreateContext(Cluster c, string keyspace)
        {
            var ctx = new CassandraContext(c, keyspace);
            return ctx;
        }

        public static ICassandraContext CreateContext(Cluster c, string keyspace, ConsistencyLevel level)
        {
            var ctx = new CassandraContext(c, keyspace, level);
            return ctx;
        }

        public static ICassandraContext CreateContext(Cluster c, string keyspace, ConsistencyLevel read, ConsistencyLevel write)
        {
            var ctx = new CassandraContext(c, keyspace, read, write);
            return ctx;
        }
    }
}
